From: Ewan Mellor Date: Tue, 20 Mar 2007 17:34:34 +0000 (+0000) Subject: Fix xm network-list through the Xen-API for managed domains. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15282^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=5ce79470d85099a90c46a265b1f45e70aafd9841;p=xen.git Fix xm network-list through the Xen-API for managed domains. Signed-off-by: Tom Wilkie --- diff --git a/tools/python/xen/xm/main.py b/tools/python/xen/xm/main.py index c5b640ccec..a138afdd95 100644 --- a/tools/python/xen/xm/main.py +++ b/tools/python/xen/xm/main.py @@ -1692,7 +1692,8 @@ def xm_network_list(args): vif_refs = server.xenapi.VM.get_VIFs(get_single_vm(dom)) vif_properties = \ map(server.xenapi.VIF.get_runtime_properties, vif_refs) - devs = map(lambda x: [x.get('handle'), map2sxp(x)], vif_properties) + devs = map(lambda (handle, properties): [handle, map2sxp(properties)], + zip(range(len(vif_properties)), vif_properties)) else: devs = server.xend.domain.getDeviceSxprs(dom, 'vif')